package com.hp.quartz.task;

import com.alibaba.fastjson.JSON;
import com.hp.quartz.util.MyAudioPlayer;
import com.hp.system.domain.IdentifyInfo;
import com.hp.system.domain.IdentifyInfoExample;
import com.hp.system.mapper.IdentifyInfoMapper;
import com.hp.system.mapper.PassInfoMapper;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.http.HttpEntity;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import java.util.List;


@Component("carInfoTask")
public class CarInfoTask {
    @Autowired(required = false)
    private PassInfoMapper passInfoMapper;
    public void testNoParam() throws Exception{
        int count = passInfoMapper.getCountByIsdeal();
        if (count>0){
            MyAudioPlayer myAudioPlayer = new MyAudioPlayer();
            myAudioPlayer.play();
        }
    }
}

